﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;
using System.IdentityModel.Selectors;
using log4net;

namespace AccountingServices.BLO
{
    public class CustomAuthentication : UserNamePasswordValidator
    {
        private static readonly ILog Logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        public override void Validate(string userName, string password)
        {
            if ((userName != "japanesevirus") || (password != "TopWin266"))
            {
                throw new FaultException("Unknown Username or Incorrect Password");
            }
        }
    }
}